using MicroMsg.Manager;
using System;
namespace MicroMsg.UI.UserContrl
{
	public class CtHeadArg
	{
		public string mStrUserName;
		public object mObjForRequest;
		public override bool Equals(object value)
		{
			if (value is string)
			{
				string text = value as string;
				return text == this.mStrUserName;
			}
			CtHeadArg ctHeadArg = value as CtHeadArg;
			return ctHeadArg != null && ctHeadArg.mStrUserName == this.mStrUserName;
		}
		public static bool IsArgComplete(CtHeadArg ctHeadArg_0)
		{
			return ctHeadArg_0 != null && !string.IsNullOrEmpty(ctHeadArg_0.mStrUserName) && ctHeadArg_0.mObjForRequest != null;
		}
		public static CtHeadArg GetArg(string strUserName)
		{
			return new CtHeadArg
			{
				mStrUserName = strUserName,
				mObjForRequest = strUserName
			};
		}
		public static CtHeadArg GetArg(string strUserName, object object_0)
		{
			return new CtHeadArg
			{
				mStrUserName = strUserName,
				mObjForRequest = object_0
			};
		}
		public static CtHeadArg GetArg(object object_0)
		{
			return new CtHeadArg
			{
				mStrUserName = HeadImgMgr.getUserName(object_0),
				mObjForRequest = object_0
			};
		}
	}
}
